package com.ymm.websocket.demo.utils.enums;

/**
 * @Description: TODO
 * @Author: Xuecheng Li
 * @CreateTime: 2022-08-15 14:56
 * @Version: 1.0.0
 */
public enum StateEnum {
    AVAILABLE(0, "空闲"),
    BUSY(1, "繁忙")
    ;

    private Integer code;
    private String message;

    StateEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "StateEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
